package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单详情对象 order_details
 * 
 * @author 王家宁
 * @date 2024-09-02
 */
@Data
public class OrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 套餐主键 */
    @Excel(name = "套餐主键")
    private Long setmealId;

    /** 商品主键 */
    @Excel(name = "商品主键")
    private Long productId;

    /** 订单主键 */
    @Excel(name = "订单主键")
    private Long orderId;

    private Integer quantity;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("setmealId", getSetmealId())
            .append("productId", getProductId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("orderId", getOrderId())
            .toString();
    }
}
